Skip to content

Add version-sentinel: dependency-version guardrail plugin - #23

Open
KSEGIT wants to merge 1 commit into
zai-org:mainfrom
KSEGIT:add-version-sentinel
Open

Add version-sentinel: dependency-version guardrail plugin#23
KSEGIT wants to merge 1 commit into
zai-org:mainfrom
KSEGIT:add-version-sentinel

Conversation

@KSEGIT

@KSEGIT KSEGIT commented Jul 27, 2026

Copy link
Copy Markdown

What

Adds version-sentinel to the marketplace as a third-party plugin via a github source — no files vendored into this repo.

What the plugin does

A PreToolUse guardrail for Claude Code that hard-blocks dependency additions, bumps, and downgrades (manifest edits via Edit/Write, and install commands via Bash) until the agent has verified the package version against its upstream registry (npmjs.com, pypi.org, crates.io, nuget.org) and recorded a source-cited check. It stops hallucinated versions, stale training-data pins, silent downgrades, and compromised-release installs. Supports npm/pnpm/yarn/bun, pip/Poetry/uv, Cargo, and NuGet. Ships /vs-record and /check-versions commands and escape hatches for intentional pins and offline sessions. MIT licensed.

Why here

The GLM Coding Plan runs inside Claude Code, so Claude-format plugins benefit Z.ai users directly. Version-checking is especially relevant for GLM coding sessions: the guardrail forces a live registry lookup instead of trusting a model's memorized package versions.

Verification

  • claude plugin marketplace add + claude plugin install from the plugin's own marketplace verified working (plugin loads, hooks fire, block/unblock cycle confirmed).
  • Entry schema matches the two existing plugins; source uses the marketplace-schema github form. .claude-plugin/marketplace.json is valid JSON.

Happy to adjust category, description wording, or the README row placement.

Third-party plugin (github source: KSEGIT/Version-Sentinel): a PreToolUse
guardrail that blocks dependency additions, bumps, and downgrades in
Claude Code until a fresh, source-cited version check is recorded.
Stops hallucinated versions, stale training-data pins, and silent
downgrades. Supports npm, pip/Poetry/uv, Cargo, and NuGet.
KSEGIT added a commit to KSEGIT/Version-Sentinel that referenced this pull request Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant